import com.project.ABT_SystemException;
import com.project.DB_Airline;
import com.project.DB_Flight;
import com.project.User;

import java.util.ArrayList;
import java.util.List;

public class test {
    public static void main(String[] args) {
        User user = new User();
        List<String> input = new ArrayList<>(List.of("101", "24", "z0CMfhbiJn")),
                userInfo = new ArrayList<>(List.of("Dai Xiuying", "ynY0NBitAI")),
                input2 = new ArrayList<>(List.of("fid=96", "position=jf0yH6PJQm"));

        /*DB_Airline dbAirline = new DB_Airline();
        DB_Flight dbFlight = new DB_Flight();

        List<String> result = dbAirline.find(input);
        System.out.println(result);
        List<String> result2 = dbFlight.find(input2);
        System.out.println(result2);*/

        try {
            user.Login(userInfo);
//            List<String> INFO = new ArrayList<String>(List.of(user.getName(), user.getPid(), user.getEmail(),
//                    user.getPhone(), user.getIdentity() + "", user.getIs_register() + "", user.getPassword()));
//            System.out.println(user.Information_Modification(INFO));
//            System.out.println(user.Book_ticket(input2));
            System.out.println(user.Change(input));
        } catch (ABT_SystemException e) {
            System.err.println("出现异常：" + e.getMessage());
        }
    }
}
